package myky.com.doctorapp.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by Mr.li on 2018/7/20.
 */

public class RecDoctorListEntity {

    /**
     * code : 1
     * msg : 成功
     * data : {"positions":[{"administrationname":0,"serialnumber":1,"positionid":7,"departmentname":"肿瘤科","name":"李忠","photo":"1759ce89963816a10366b7d12e94fcb5","hospitalname":"御方堂","ID":1,"source":0,"sourceName":"c麦","type":1},{"administrationname":1,"serialnumber":2,"positionid":25,"departmentname":"骨科","name":"薛泳","photo":"1759ce89963816a10366b7d12e94fcb5","hospitalname":"御方堂","ID":2,"source":0,"sourceName":"c麦","type":1},{"number":11,"serialnumber":3,"positionid":37,"name":"北京协和医院神经外科","photo":"1759ce89963816a10366b7d12e94fcb5","ID":3,"source":0,"sourceName":"c麦","type":2,"randomPhotos":["group1/M00/00/31/CmQBkVtDGd-AchtCAACojQ7jrWE750.jpg","group1/M00/00/31/CmQBkVtDGd-AchtCAACojQ7jrWE750.jpg","group1/M00/00/31/CmQBkVtDU_6ANZdnAAJNIuoZ4_U826.jpg"]},{"number":8,"serialnumber":4,"positionid":38,"name":"移动科技","photo":"1759ce89963816a10366b7d12e94fcb5","ID":4,"source":1,"sourceName":"网站","type":2,"randomPhotos":["group1/M00/00/31/CmQBkVtDGd-AchtCAACojQ7jrWE750.jpg","group1/M00/00/35/CmQBkVtNt36ASdknAAENzCLtQG8240.jpg","group1/M00/00/31/CmQBkVtDEWKAUUYVAACoub29lXc477.png"]}]}
     * version : v1.0
     * size : 4
     * pages : 2
     * current : 1
     * total : 6
     */
    public static final int EXPERITEM = 1;
    public static final int GROUPITEM = 2;


    private int code;
    private String msg;
    private DataBean data;
    private String version;
    private int size;
    private int pages;
    private int current;
    private int total;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public static class DataBean {
        private List<PositionsBean> positions;

        public List<PositionsBean> getPositions() {
            return positions;
        }

        public void setPositions(List<PositionsBean> positions) {
            this.positions = positions;
        }

        public static class PositionsBean implements MultiItemEntity {
            /**
             * administrationname : 0
             * serialnumber : 1
             * positionid : 7
             * departmentname : 肿瘤科
             * name : 李忠
             * photo : 1759ce89963816a10366b7d12e94fcb5
             * hospitalname : 御方堂
             * ID : 1
             * source : 0
             * sourceName : c麦
             * type : 1
             * number : 11
             * randomPhotos : ["group1/M00/00/31/CmQBkVtDGd-AchtCAACojQ7jrWE750.jpg","group1/M00/00/31/CmQBkVtDGd-AchtCAACojQ7jrWE750.jpg","group1/M00/00/31/CmQBkVtDU_6ANZdnAAJNIuoZ4_U826.jpg"]
             */
            private String administrationname;
            private int serialnumber;
            private int positionid;
            private String departmentname;
            private String name;
            private String photo;
            private String hospitalname;
            private int ID;
            private int source;
            private String sourceName;
            private int type;
            private int number;
            private List<String> randomPhotos;

            public String getAdministrationname() {
                return administrationname;
            }

            public void setAdministrationname(String administrationname) {
                this.administrationname = administrationname;
            }

            public int getSerialnumber() {
                return serialnumber;
            }

            public void setSerialnumber(int serialnumber) {
                this.serialnumber = serialnumber;
            }

            public int getPositionid() {
                return positionid;
            }

            public void setPositionid(int positionid) {
                this.positionid = positionid;
            }

            public String getDepartmentname() {
                return departmentname;
            }

            public void setDepartmentname(String departmentname) {
                this.departmentname = departmentname;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }

            public String getHospitalname() {
                return hospitalname;
            }

            public void setHospitalname(String hospitalname) {
                this.hospitalname = hospitalname;
            }

            public int getID() {
                return ID;
            }

            public void setID(int ID) {
                this.ID = ID;
            }

            public int getSource() {
                return source;
            }

            public void setSource(int source) {
                this.source = source;
            }

            public String getSourceName() {
                return sourceName;
            }

            public void setSourceName(String sourceName) {
                this.sourceName = sourceName;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public List<String> getRandomPhotos() {
                return randomPhotos;
            }

            public void setRandomPhotos(List<String> randomPhotos) {
                this.randomPhotos = randomPhotos;
            }

            @Override
            public int getItemType() {
                return type;
            }
        }
    }
}
